Skip to main content

Interface: VideoProcessor

Properties

destroy

destroy: () => Promise<void>

Type declaration

▸ (): Promise<void>

Destroy the segmentation wasm instance

Returns

Promise<void>


process

process: (source: MediaStream) => Promise<MediaStream>

Type declaration

▸ (source): Promise<MediaStream>

Process the video and return a MediaStream

Parameters
NameType
sourceMediaStream
Returns

Promise<MediaStream>

Methods

close

close(): void

Stop the process of video segmentation

Returns

void


open

open(): Promise<void>

Returns

Promise<void>